package com.md.api.dao;

import com.md.api.entity.AdvertisementInfo;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface AdvertisementInfoMapper {
    int delete(Integer id);

    int insert(AdvertisementInfo record);


    AdvertisementInfo getById(Integer id);
    List<AdvertisementInfo> selectAll();

    int update(AdvertisementInfo record);

    List<AdvertisementInfo> advertList(@Param("adType") Integer adType);
}